/*
 * @Author: your name
 * @Date: 2021-10-18 17:35:30
 * @LastEditTime: 2021-10-20 23:03:10
 * @LastEditors: your name
 * @Description: In User Settings Edit
 * @FilePath: \led_sys_backup\bsp\uart.h
 */

#if 0
#define MICROLIB_MODE
#elif 1
#define NO_SEMIHOSTING
#endif

typedef enum
{
	UART1,UART2,UART3
}UART_NAME;

extern void uart_init(MODE mode,UART_NAME uart,uint32_t br);
extern u32 uart_send_str(u8 *str);
extern u32 uart_recv_data(void *data,u32 len);
extern u32 uart_recv_d(void);
extern void uart_send_data(UART_NAME uart,void *data,u32 len);
